package cn.jx.asc.common.utils;

/**
 * @author z423
 * @2021-07-01-21:21
 * @effect   数据转换类
 * @especial
 */
public class conversUtil {
    /**
     * 将字符串转换为doubel
     * @param value
     * @return
     */
   public static double[] getDouble(String[] value ){
       double[] k=new double[value.length];
       for (int i=0;i<value.length;i++){
           k[i]=Double.parseDouble(value[i]);
       }
       return k;
   }

    /**
     * 将double转换为整形
     * @param value
     * @return
     */
   public  static Integer[] getInteger(double[] value){
       Integer[] k=new Integer[value.length];
       for (int i=0;i<value.length;i++){
           k[i]=(int) value[i];
       }
       return k;
   }
}
